<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="java.util.List" %>
<%@ page import="my.market.jdbc.dataClass.Goods" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="content">
<% RequestDispatcher dispatcher = request.getRequestDispatcher("/DisplayGoods");
	dispatcher.include(request, response);%>
<% List<Goods> goods = (List<Goods>) request.getAttribute("batch_goods"); %>
<c:forEach var="good" items="<%=goods %>">
	<table border="1" height="40">
		<tr>
			<td width="200"><a href="${pageContext.request.contextPath}/pageDisplay/goodDetail.jsp?id=${good.getId()}">${good.getName()}&nbsp;&nbsp;&nbsp;</a></td>
			<td width="100">${good.getType()}&nbsp;&nbsp;&nbsp;</td>
			<td width="50">${good.getPrice()}元</td>
		</tr>	
	</table>
</c:forEach>
</div>